package top.songxs.gmall.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import top.songxs.gmall.product.dto.SkuInfoDto;
import top.songxs.gmall.product.entity.SkuInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 86176
* @description 针对表【sku_info(库存单元表)】的数据库操作Service
* @createDate 2023-05-15 20:14:07
*/
public interface SkuInfoService extends IService<SkuInfo> {

    Page<SkuInfo> findSkuInfo(Integer pageNum, Integer pageSize);

    void saveSkuInfo(SkuInfoDto skuInfoDto);

    void ongSale(Long skuId);

    void cancelSale(Long skuId);
}
